<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link href="/dtpr/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
    <link href="/dtpr/Flat-UI/css/flat-ui.min.css" rel="stylesheet" type="text/css">
    <link href="/dtpr/bootstrap-select/css/bootstrap-select.min.css" rel="stylesheet" type="text/css">
    <link href="/dtpr/css/home.css" rel="stylesheet" type="text/css">
    <link href="/dtpr/css/test.css" rel="stylesheet" type="text/css">
    <script src="/dtpr/bootstrap/js/jquery-3.2.1.min.js"></script>
    <script src="/dtpr/js/home.js"></script>
    <title>手动组题</title>
</head>
<body>
<!--网页头-->
<script src="/dtpr/js/head.js"></script>
<!--网页体-->
<div class="main">
    <div class="container-fluid">
        <!--页面左侧导航-->
        <script src="/dtpr/html/teacher/test/js/navigation.js"></script>
        <!--页面正文内容-->
        <div class="col-xs-8">
            <div class="p-body">
                <!--内容部-->
                <div class="title">
                    <h4>
                        手工组题
                    </h4>
                    <hr>
                </div>
                <form class="form-horizontal">
                <div class="p-content">
                    <!--第一级表单-->
                    <div class="form-group">
                        <label class="control-label col-sm-2">题集名称：</label>
                        <div class="col-sm-4">
                            <input class="form-control" type="text" id="examname">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">章节选择</label>
                        <div class="col-sm-8">
                            <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-section">添加章节</button>
                            <div id="table-section" style="margin: 20px 0">
                                <table class="table table-hover">
                                    <thead>
                                    <tr>
                                        <th>科目</th>
                                        <th>册次</th>
                                        <th>章节</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>

                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-sm-2"></label>
                        <div class="col-sm-9">
                            <button class="btn btn-primary" type="button" onclick="openModalTest()">设置题目</button>
                        </div>
                    </div>
                </div>
                <!--第二级表单-->
                <div class="modal fade" id="modal-test" tabindex="-1" role="dialog" aria-label="testLabel">
                    <div class="modal-dialog modal-vlg" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <h4 class="modal-title text-center">设置题目</h4>
                            </div>
                            <div class="modal-body row">
                                <div class="col-sm-4">
                                    <!--题型及难度选择-->
                                    <div class="test-select">
                                        <div class="line">
                                            <!--题型-->
                                            <select class="form-control test-type">
                                                <option value="1">选择题</option>
                                                <option value="2">判断题</option>
                                                <option value="3">填空题</option>
                                                <option value="4">阅读题</option>
                                            </select>
                                        </div>
                                        <div class="line">
                                            <!--难度-->
                                            <select class="form-control test-level">
                                                <option value="1">易</option>
                                                <option value="2">中</option>
                                                <option value="3">难</option>
                                            </select>
                                        </div>
                                    </div>
                                    <!--题库-->
                                    <div class="test-library line">
                                        <select class="form-control" multiple style="height: 200px">
                                        </select>
                                    </div>
                                    <!--中间说明以及添加题目地带-->
                                    <div class="line">
                                        <p>
                                            <span class="col-sm-8">*双击题目可以显示详细内容 </span>
                                            <button type="button" class="btn btn-sm btn-primary" onclick="addTest()">添加题目</button>
                                        </p>
                                    </div>
                                    <!--已选题目列表-->
                                    <div class="test-selected bootstrap-tagsinput">
                                    </div>
                                </div>
                                <div class="col-sm-8">
                                    <div class="test-detail line">

                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button class="btn btn-primary" type="button" data-dismiss="modal" onclick="submitTestSet()">提交</button>
                                <button class="btn btn-default" type="button" data-dismiss="modal">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
                </form>
                <!--添加章节modal-->
                <div class="modal fade" id="modal-section" tabindex="-1" role="dialog" aria-label="testLabel">
                    <div class="modal-dialog" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <h4 class="modal-title text-center">添加章节</h4>
                            </div>
                            <div class="modal-body">
                                <form class="form-horizontal">
                                    <div class="form-group">
                                        <label class="control-label col-sm-2">科目</label>
                                        <div class="col-sm-9">
                                            <select class="form-control" id="subject">
                                                <option selected>请选择</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-2">册次</label>
                                        <div class="col-sm-9">
                                            <select class="form-control" id="volume">
                                                <option selected>请选择</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-sm-2">章节</label>
                                        <div class="col-sm-9">
                                            <select class="form-control" id="section">
                                                <option selected>请选择</option>
                                            </select>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="modal-footer">
                                <button class="btn btn-primary" type="button" onclick="addSection()">确认</button>
                                <button class="btn btn-default" type="button" data-dismiss="modal">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--网页脚-->
<script src="/dtpr/js/foot.js"></script>
<script src="/dtpr/bootstrap/js/jquery-3.2.1.min.js"></script>
<script src="/dtpr/js/select.js"></script>
<script src="/dtpr/Flat-UI/js/flat-ui.min.js"></script>
<script src="/dtpr/html/teacher/test/js/test.js"></script>
<script src="/dtpr/html/teacher/test/js/manuallSetVolume.js"></script>
<script>
    navigationOpen("panel-element-707348");
    $(".test-type").change(flushTestTable);
    $(".test-level").change(flushTestTable);
</script>
</body>
</html>